package jiaerc.moreingredients;

import net.minecraft.item.Item;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
//把自己的类导入
import jiaerc.moreingredients.item.Cabbage;
import jiaerc.moreingredients.item.CabbageSeeds;
import jiaerc.moreingredients.item.GreenPepper;
import jiaerc.moreingredients.item.GreenPepperSeeds;

public class MoreIngredientsItems {
    //创建物品注册器
    public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, "moreingredients");
    //注册卷心菜
    public static final RegistryObject<Item> CABBAGE=ITEMS.register("cabbage", Cabbage::new);
    public static final RegistryObject<Item> CABBAGE_SEEDS=ITEMS.register("cabbage_seeds",
            () -> new CabbageSeeds(MoreIngredientsBlocks.CABBAGE_CROPS_BLOCK.get()));
    public static final RegistryObject<Item> GREEN_PEPPER=ITEMS.register("green_pepper", GreenPepper::new);
    public static final RegistryObject<Item> GREEN_PEPPER_SEEDS=ITEMS.register("green_pepper_seeds",
            () -> new GreenPepperSeeds(MoreIngredientsBlocks.GREEN_PEPPER_CROPS_BLOCK.get()));
}
/*
package jiaerc.foodcraft;

import jiaerc.foodcraft.item.vegetable.Cabbage;
import jiaerc.foodcraft.item.vegetable.GreenPepper;
import jiaerc.foodcraft.item.vegetable.CabbageSeed;
import net.minecraft.item.Item;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class ModItems {
    // 创建物品注册器
    public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, "foodcraft");
    // 注册卷心菜种子
    public static final RegistryObject<Item> CABBAGE_SEED = ITEMS.register("cabbage_seed", CabbageSeed::new);
    public static final RegistryObject<Item> GREEN_PEPPER = ITEMS.register("green_pepper", GreenPepper::new);
    public static final RegistryObject<Item> CABBAGE= ITEMS.register("cabbage", Cabbage::new);
}
*/
